import request from '@/utils/request'

// 查询前沿技术列表
export function listSubmissions(query) {
  return request({
    url: '/business/submissions/list',
    method: 'get',
    params: query
  })
}

// 查询前沿技术详细
export function getSubmissions(id) {
  return request({
    url: '/business/submissions/' + id,
    method: 'get'
  })
}

// 新增前沿技术
export function addSubmissions(data) {
  return request({
    url: '/business/submissions',
    method: 'post',
    data: data
  })
}

// 修改前沿技术
export function updateSubmissions(data) {
  return request({
    url: '/business/submissions',
    method: 'put',
    data: data
  })
}

// 删除前沿技术
export function delSubmissions(id) {
  return request({
    url: '/business/submissions/' + id,
    method: 'delete'
  })
}
